package com.nmh.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 *
 * </p>
 *
 * @author lzx
 * @since 2023-12-19
 */
@Data
@TableName("pasture")
@ApiModel("牧场对象")
public class Pasture implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID,唯一表示")
    @TableId(value = "pasture_id", type = IdType.AUTO)
    private Integer pastureId;

    /**
     * 牧场名称
     */
    @ApiModelProperty(value = "牧场名称")
    @TableField("pasture_name")
    private String pastureName;

    /**
     * 场地规模
     */
    @ApiModelProperty(value = "场地规模")
    @TableField("site_size")
    private Integer siteSize;


    /**
     * 养殖规模
     */
    @ApiModelProperty(value = "养殖规模")
    @TableField("cultivation_size")
    private String cultivationSize;

    /**
     * 地址
     */
    @ApiModelProperty(value = "地址")
    @TableField("address")
    private String address;

    /**
     * 经度位置
     */
    @ApiModelProperty(value = "经度位置")
    @TableField("longitude")
    private String longitude;


    /**
     * 纬度位置
     */
    @ApiModelProperty(value = "纬度位置")
    @TableField("latitude")
    private String latitude;


    /**
     * 牲畜id
     */
    @ApiModelProperty(value = "品种ID")
    @TableField("livestock_id")
    private Integer livestockId;

    /**
     * 0启用，1停止
     */
    @ApiModelProperty(value = "状态")
    @TableField("states")
    private Integer states;


    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}
